package com.gorilla.imitateStruts.action.impl;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.gorilla.imitateStruts.action.Action;
import com.gorilla.imitateStruts.service.UserManagerService;

public class ModifyUserAction implements Action {

	@Override
	public String execute(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		
		String userName = request.getParameter("userName");
		UserManagerService userManager = new UserManagerService();
		userManager.modifyUser(userName);
		return "jsp/modifySuccess.jsp";
	}

}
